let redisConst = module.exports;

redisConst.ADMIN_SYS_TOKEN = "ADMIN_SYS_TOKEN";
redisConst.PERF_STAT_WEEK_CUR = "PERF_STAT_WEEK_CUR";
redisConst.PERF_STAT_WEEK_CUR_DU = "PERF_STAT_WEEK_CUR_DU";
redisConst.GROUP_STAT_CUR = "GROUP_STAT_CUR";
redisConst.PROF_STAT_CUR = "PROF_STAT_CUR";

// game key
redisConst.GAME_DESK_INFO = "GAME_DESK_INFO";
redisConst.GAME_DESK_INFO_LIMIT = "GAME_DESK_INFO_LIMIT";
redisConst.GAME_DESK_PWD = "GAME_DESK_PWD";
redisConst.GAME_STARTUP_FLAG = "GAME_STARTUP_FLAG";
redisConst.GAME_TICKER_FLAG = "GAME_TICKER_FLAG";
redisConst.GAME_ONLINE_USER_CNT_KEY = "GAME_ONLINE_USER_CNT_KEY";
redisConst.GAME_ROOM_TICKER_FLAG = "GAME_ROOM_TICKER_FLAG"; // 房间心跳信息标识， 此标识如果没了说明房间失效, k-v, expire=5min, key=GAME_ROOM_TICKER_FLAG:roomID value=1
redisConst.GAME_ROOM_FLAG = "GAME_ROOM_FLAG"; // 房间信息, k-v,  key=GAME_ROOM_FLAG:roomID value=roomInfo
redisConst.GAME_ROOM_RECREATE = "game_room_recreate"; // 房间信息, k-v,  key=GAME_ROOM_RECREATE:roomID value=roomInfo

redisConst.GAME_CLUB_MEMBER_CNT = "GAME_CLUB_MEMBER_CNT";

redisConst.game_recreate_lock = "game_recreate_lock"; // 重新创建房间锁定的房间信息，保证玩家继续游戏的时候创建的房间是相同的


redisConst.GAME_CLUB_ROOM_FLAG = "GAME_CLUB_ROOM_FLAG"; // 房卡房间信息, hashmap, key=GAME_CLUB_ROOM_FLAG:clubID hkey=roomID value=roomInfo
redisConst.GAME_ROOM_CREATOR_FLAG = "GAME_ROOM_CREATOR_FLAG"; // 房间创建者标识，暂未使用
redisConst.GAME_ROOM_RETURN_CARDS_FLAG = "GAME_ROOM_RETURN_CARDS_FLAG"; // 返回房卡标识， 有此标识标识已经返回过房卡， k-v, key=GAME_ROOM_RETURN_CARDS_FLAG:roomID:gt:ts:owner value=1
redisConst.GAME_ROOM_PLAY_FLAG = "GAME_ROOM_PLAY_FLAG"; // 房间游戏标识，有此标识标识该房间已经玩过游戏， 不能返回房卡, k-v, key=GAME_ROOM_PLAY_FLAG:roomID:gt:ts value=1
redisConst.GAME_ROOM_USERS_MAP = "GAME_ROOM_USERS_MAP"; // 房间玩家列表， hashmap, key=GAME_ROOM_USERS_MAP:gt:roomID hkey=uid value=userInfo
redisConst.GAME_USER_COUNT = "GAME_USER_COUNT";

redisConst.GAME_UNION_ROOM_FLAG = "GAME_UNION_ROOM_FLAG"; //

redisConst.LOGIN_TOKEN = "LOGIN_TOKEN";
redisConst.PWD_VALID_CODE = "PWD_VALID_CODE";
redisConst.PWD_VALID_CODE_LIMIT = "PWD_VALID_CODE_LIMIT";
redisConst.PWD_VALID_CODE_INTERFACE_LIMIT = "PWD_VALID_CODE_INTERFACE_LIMIT";
redisConst.SAFE_BOX_PWD_VALID_CODE = "SAFE_BOX_PWD_VALID_CODE";
redisConst.SAFE_BOX_PWD_VALID_CODE_LIMIT = "SAFE_BOX_PWD_VALID_CODE_LIMIT";
redisConst.PAY_RECHARGE_QUERY_LOCK = "PAY_RECHARGE_QUERY_LOCK";
redisConst.PAY_WITHDRAW_QUERY_LOCK = "PAY_WITHDRAW_QUERY_LOCK";

// user key
redisConst.USER_GAME_RESULT = "USER_GAME_RESULT";
redisConst.USER_GAMING_FLAG = "USER_GAMING_FLAG";
redisConst.USER_GAMING_FLAG_LIMIT = "USER_GAMING_FLAG_LIMIT";
redisConst.USER_ROOM_FLAG = "USER_ROOM_FLAG"; // 玩家房间信息, 是否在房间中, k-v, key=USER_ROOM_FLAG:uid value=roomInfo
redisConst.USER_FRIEND_FLAG = "USER_FRIEND_FLAG";

// user buffer lock key
redisConst.USER_BUFFER_LOCK_KEY = "USER_BUFFER_LOCK_KEY";


redisConst.SYS_USER_COIN_UPDATE_LIMIT = "SYS_USER_COIN_UPDATE_LIMIT";
redisConst.AGENT_TOKEN = "AGENT_TOKEN";

// 客服 key
redisConst.CUSTOMER_SERVICE_INCRY_COIN_LIMIT = "CUSTOMER_SERVICE_INCRY_COIN_LIMIT";

// authCode key
redisConst.AUTH_CODE_KEY = "AUTH_CODE_KEY";

redisConst.ROOM_USERSINFO = "ROOM_USERSINFO";

//微信信息缓存相关
redisConst.wechatCacheMap = 'weixinCache';
redisConst.wxCodeCacheMap = 'wxCodeCacheMap';
redisConst.wxJsapi_ticket = 'jsapi_ticketMap';
redisConst.wxApiAccessTokenMap = 'apiAccessTokenMap';
redisConst.wxUnionMap = "wxUnionMap";
redisConst.gamingMap="gamingMap";
